<template>
    <div class="personal">
      <Header title="个人主页" go-back="true"></Header>
      <div class="singer-header">
        <div class="img">
          <img :src="artist.img1v1Url" alt="">
        </div>
        <div class="singer-des">
          <div class="singer-name">
            <span>{{artist.name}}</span>
          </div>
        </div>
      </div>
      <div class="singer-des">
        <p>{{artist.briefDesc | formatDate}}</p>
      </div>
    </div>
</template>

<script>
import Header from '../../Header/Header'
import {getArtists} from '../../../api/node'

export default {
  name: 'personal',
  data () {
    return {
      artist: {}
    }
  },
  created () {
    getArtists(this.$route.params.id).then(res => {
      if (res.code === 200) {
        this.artist = res.artist
        console.log(this.artist)
      }
    })
  },
  components: {
    Header
  }
}
</script>

<style lang="scss" scoped>
.personal{
  width: 100%;
  padding-top: 50px;
  .singer-header{
    width: 100%;
    height: 120px;
    padding: 10px;
    display: -webkit-inline-box;
    align-items: center;
    /*justify-content: space-between;*/
    .img{
      img{
        width: 90px;
        height: 90px;
      }
    }
    .singer-des{
      width: 75%;
      padding-left: 10px;
      .singer-name {
        display: flex;
        span{
          font-size: 16px;
          line-height: 30px;
        }
      }
    }
  }
  .singer-des{
    width: 100%;
    padding: 10px;
    text-align: center;
    p{
      font-size: 13px;
      line-height: 26px;
    }
  }
}
</style>
